package com.gopay.scheduler.job;

import com.gopay.remote.fundcps.service.FundcProductService;
import com.gopay.scheduler.GopayBaseJob;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

/**
 * 商财通获取基金产品信息任务
 * FundbProductJob.java
 * @author liuyu
 * @2017年03月28日 上午11:00:00  www.gopay.com.cn Inc.All rights reserved.
 */
public class FundcProductJob extends GopayBaseJob {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Resource(name = "fundcProductService")
    private FundcProductService fundcProductService;

    @Override
    protected void doJobInternal() {
        try {
            logger.info("商财通获取基金产品信息开始！");
            fundcProductService.insertInfoFromRtBiz();
            logger.info("商财通获取基金产品信息结束！");
        } catch (Exception e) {
            logger.error("商财通获取基金产品信息出错！", e);
        }
    }


}
